<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 100px;height: 100px;
            border: 1px solid red;
        }
        span{
            border: 1px solid blue;
            /*行内元素宽高不能修改*/
            width: 100px;height: 100px;
        }
        img{
            /*行内块元素,一共占一行且可以修改*/
            width: 100px;
            height: 100px;
        }
        a{
            background-color: #0aa1ed;
            display: block;
            width: 132px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            color: white;
            font-size: 20px;
            text-decoration: none;
            border-radius: 3px;/*设置圆角 值越大越圆*/
        }
    </style>
</head>
<body>
<a href="">查看详情</a>
<img src="../mg.png" alt="">
<img src="../mg.png" alt="">
<img src="../mg.png" alt="">
<div>div1</div>
<div>div2</div>
<div>div3</div>
<span>span1</span>
<span>span2</span>
<span>span3</span>
</body>
</html>